define(BASE_URL, get_bloginfo('siteurl'));
function displayTuningDB()
{
$plug = get_query_var( 'plug' );//$_GET['plug'];
$seite = get_query_var( 'seite' );//$_GET['seite'];
if (isset($plug) && $plug == "tuning")
{
echo "
";
if ($seite == "" || $seite == "marken")
displayMarken();
else
if ($seite == "modelle")
displayModelle();
else
if ($seite == "motoren")
displayMotoren();
else
if ($seite == "tuning")
displayTunings();
echo "
";
}
}
function displayMarken()
{
global $wpdb;
$table = $wpdb->prefix."tuning_marke";
$marken = $wpdb->get_results("select marke_id, marke, logo_url from $table order by marke_id");
echo "";
$diffkw = $tuning->kw_optimiert - $motor->kw_serie;
$diffps = $tuning->ps_optimiert - $motor->ps_serie;
$diffnm = $tuning->nm_optimiert - $motor->nm_serie;
echo "
".$tuning->typ."
";
echo "
";
echo "Serie | Optimiert | Differenz |
";
echo "
".$motor->kw_serie." kW/".$motor->ps_serie." PS |
".$tuning->kw_optimiert." kW/".$tuning->ps_optimiert." PS |
".$diffkw." kw/".$diffps." PS |
";
echo "
".$motor->nm_serie." nm |
".$tuning->nm_optimiert." nm |
".$diffnm." nm |
";
echo "
";
echo "
".$tuning->bemerkung."
Preis: ".$tuning->preis." SFr.
";
echo "
";
}
echo "